package com.mvc.service.impl;

import com.mvc.entity.Order;
import com.mvc.mapper.OrderMapper;
import com.mvc.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @ClassName OrderServiceImpl
 * @Description TODO
 * @Author Gla
 * @Date 2021/12/1 22:24
 * @Version 1.0
 **/
@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    private OrderMapper orderMapper;
    @Override
    public List<Order> listSearch(Integer startRow, Integer limit, String shippingNum, String receiver_name) {
        return orderMapper.listSearch(startRow,  limit,  shippingNum,  receiver_name);
    }

    @Override
    public Integer getCount(String shippingNum, String receiver_name) {
        return orderMapper.getCount( shippingNum,  receiver_name);
    }


}
